<?php

namespace JsonLowCode\UI;


use JsonLowCode\Schema;

/**
 * AppLink 组件
 * @method static AppLink make(mixed $children = null) AppLink组件
 */
class AppLink extends Schema
{
    protected string $componentName = "AppLink";

    /**
     * @param mixed|null $children
     */
    public function __construct(mixed $children = null)
    {
        parent::__construct();
        $children!==null&&$this->children($children);
    }

    /**
     * @param string|array $option
     * @return $this
     */
    public function to(string|array $option = ""): static
    {
        return $this->prop("to",$option);
    }


}
